<?php
	/**
	 * 获取头像列表
	 */
    class HeadimgList extends APIBase {
		
		public $tag = "HeadimgList";
    	public $isLogin = true;
		
		public function before() {
			$this->initCacheRedis();
			$this->initMysql();
			return true;
		}
		public function logic() {
			$headimgList = Config::$headimgList;
			$data = array();
			$arr = array();
			foreach($headimgList as $key=>$val){
				foreach($val as $k=>$v){
					$arr[$k] = Config::$pic_prefix.$v;
				}
				$data[$key] = $arr;
			}
			$this->returnData($data);
			
		}
		
        public function after() {
			$this->deinitCacheRedis();
		}
    }
?>
